package com.jetwinner.webfast.module.bigapp.dao;

import com.jetwinner.webfast.kernel.dao.support.OrderBy;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author xulixin
 */
public interface AppGroupDao {

    int searchGroupsCount(Map<String, Object> conditions);

    List<Map<String, Object>> searchGroups(Map<String, Object> conditions, OrderBy orderBy,
                                           Integer start, Integer limit);

    int addGroup(Map<String, Object> group);

    Map<String, Object> getGroup(Integer id);

    void updateGroup(Integer id, Map<String, Object> fields);

    List<Map<String, Object>> getGroupsByIds(Set<Object> ids);
}
